#ifndef CLIENTSOCKET_H
#define CLIENTSOCKET_H

#include<QTcpSocket>
#include<QObject>

class ClientSocket : public QTcpSocket{
     Q_OBJECT

public:
     ClientSocket(QObject *parent = 0);
     ~ClientSocket();

signals:
     void updateClient(QString);
     void updateHistory(QString);

public slots:
     void slotsendMsg(QString);
     void slotconnectServer(QString,QString);
     void slotdisconnectServer();
     void slotdataReceive();
};



#endif // CLIENTSOCKET_H
